#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //set QDial
    ui->dial->setWrapping(true);
    ui->dial->setNotchesVisible(true);
//    ui->dial->setNotchTarget(100);
    ui->dial->setPageStep(10);

    //set QLabel
    ui->label->setText("adjuest the window`s opacity");
    ui->label->setAlignment(Qt::AlignCenter);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_dial_valueChanged(int value)
{
    qDebug() << value / 100.0;
    setWindowOpacity(value / 100.0);
}
